home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: node5_ct.html
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 4e 6f | 74 65 3a 3c 2f 54 49 54 |ts of No|te:</TIT|
|000000b0| 4c 45 3e 0a 0a 3c 4d 45 | 54 41 20 48 54 54 50 2d |LE>..<ME|TA HTTP-|
|000000c0| 45 51 55 49 56 3d 22 43 | 6f 6e 74 65 6e 74 2d 54 |EQUIV="C|ontent-T|
|000000d0| 79 70 65 22 20 43 4f 4e | 54 45 4e 54 3d 22 74 65 |ype" CON|TENT="te|
|000000e0| 78 74 2f 68 74 6d 6c 3b | 20 63 68 61 72 73 65 74 |xt/html;| charset|
|000000f0| 3d 75 74 66 2d 38 22 3e | 0a 3c 4d 45 54 41 20 4e |=utf-8">|.<META N|
|00000100| 41 4d 45 3d 22 76 69 65 | 77 70 6f 72 74 22 20 43 |AME="vie|wport" C|
|00000110| 4f 4e 54 45 4e 54 3d 22 | 77 69 64 74 68 3d 64 65 |ONTENT="|width=de|
|00000120| 76 69 63 65 2d 77 69 64 | 74 68 2c 20 69 6e 69 74 |vice-wid|th, init|
|00000130| 69 61 6c 2d 73 63 61 6c | 65 3d 31 2e 30 22 3e 0a |ial-scal|e=1.0">.|
|00000140| 3c 4d 45 54 41 20 4e 41 | 4d 45 3d 22 47 65 6e 65 |<META NA|ME="Gene|
|00000150| 72 61 74 6f 72 22 20 43 | 4f 4e 54 45 4e 54 3d 22 |rator" C|ONTENT="|
|00000160| 4c 61 54 65 58 32 48 54 | 4d 4c 20 76 32 30 32 32 |LaTeX2HT|ML v2022|
|00000170| 22 3e 0a 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 53 |">..<LIN|K REL="S|
|00000180| 54 59 4c 45 53 48 45 45 | 54 22 20 48 52 45 46 3d |TYLESHEE|T" HREF=|
|00000190| 22 45 78 74 65 6e 64 69 | 6e 67 2e 63 73 73 22 3e |"Extendi|ng.css">|
|000001a0| 0a 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 6e 65 78 |..<LINK |REL="nex|
|000001b0| 74 22 20 48 52 45 46 3d | 22 6e 6f 64 65 36 5f 6d |t" HREF=|"node6_m|
|000001c0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|000001d0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|000001e0| 45 46 3d 22 6e 6f 64 65 | 34 5f 6d 6e 2e 68 74 6d |EF="node|4_mn.htm|
|000001f0| 6c 22 3e 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 75 |l">.<LIN|K REL="u|
|00000200| 70 22 20 48 52 45 46 3d | 22 6e 6f 64 65 34 5f 6d |p" HREF=|"node4_m|
|00000210| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|00000220| 45 4c 3d 22 6e 65 78 74 | 22 20 48 52 45 46 3d 22 |EL="next|" HREF="|
|00000230| 6e 6f 64 65 36 5f 6d 6e | 2e 68 74 6d 6c 22 3e 0a |node6_mn|.html">.|
|00000240| 3c 2f 48 45 41 44 3e 0a | 20 0a 3c 42 4f 44 59 20 |</HEAD>.| .<BODY |
|00000250| 62 67 63 6f 6c 6f 72 3d | 22 23 66 66 66 66 66 66 |bgcolor=|"#ffffff|
|00000260| 22 20 74 65 78 74 3d 22 | 23 30 30 30 30 30 30 22 |" text="|#000000"|
|00000270| 20 6c 69 6e 6b 3d 22 23 | 39 39 34 34 45 45 22 20 | link="#|9944EE" |
|00000280| 76 6c 69 6e 6b 3d 22 23 | 30 30 30 30 66 66 22 20 |vlink="#|0000ff" |
|00000290| 61 6c 69 6e 6b 3d 22 23 | 30 30 66 66 30 30 22 3e |alink="#|00ff00">|
|000002a0| 0a 0a 3c 48 34 3e 3c 41 | 20 49 44 3d 22 53 45 43 |..<H4><A| ID="SEC|
|000002b0| 54 49 4f 4e 30 30 30 33 | 31 30 31 30 30 30 30 30 |TION0003|10100000|
|000002c0| 30 30 30 30 30 30 30 30 | 22 3e 0a 4e 6f 74 65 3a |00000000|">.Note:|
|000002d0| 3c 2f 41 3e 0a 3c 2f 48 | 34 3e 20 54 68 65 20 43 |</A>.</H|4> The C|
|000002e0| 20 74 79 70 65 20 53 43 | 4d 20 69 73 20 75 73 65 | type SC|M is use|
|000002f0| 64 20 74 6f 20 64 65 73 | 63 72 69 62 65 20 74 68 |d to des|cribe th|
|00000300| 65 20 6f 62 6a 65 63 74 | 73 0a 6d 61 6e 69 70 75 |e object|s.manipu|
|00000310| 6c 61 74 65 64 20 69 6e | 20 53 63 68 65 6d 65 2e |lated in| Scheme.|
|00000320| 20 50 52 49 4d 49 54 49 | 56 45 20 69 73 20 61 6e | PRIMITI|VE is an|
|00000330| 20 61 6c 69 61 73 20 66 | 6f 72 20 74 68 69 73 20 | alias f|or this |
|00000340| 74 79 70 65 3b 20 69 74 | 0a 69 73 20 70 72 65 66 |type; it|.is pref|
|00000350| 65 72 61 62 6c 79 20 75 | 73 65 64 20 77 68 65 6e |erably u|sed when|
|00000360| 20 64 65 66 69 6e 69 6e | 67 20 61 20 6e 65 77 20 | definin|g a new |
|00000370| 70 72 69 6d 69 74 69 76 | 65 2e 0a 0a 3c 50 3e 0a |primitiv|e...<P>.|
|00000380| 53 54 6b 5f 61 64 64 5f | 6e 65 77 5f 70 72 69 6d |STk_add_|new_prim|
|00000390| 69 74 69 76 65 20 74 65 | 6c 6c 73 20 74 68 65 20 |itive te|lls the |
|000003a0| 69 6e 74 65 72 70 72 65 | 74 65 72 20 74 68 61 74 |interpre|ter that|
|000003b0| 20 74 68 65 20 53 63 68 | 65 6d 65 20 0a 73 79 6d | the Sch|eme .sym|
|000003c0| 62 6f 6c 20 3c 54 54 3e | 70 6f 73 69 78 2d 74 69 |bol <TT>|posix-ti|
|000003d0| 6d 65 3c 2f 54 54 3e 20 | 6d 75 73 74 20 62 65 20 |me</TT> |must be |
|000003e0| 62 6f 75 6e 64 20 74 6f | 20 74 68 65 20 28 43 20 |bound to| the (C |
|000003f0| 77 72 69 74 74 65 6e 29 | 20 70 72 69 6d 69 74 69 |written)| primiti|
|00000400| 76 65 0a 3c 54 54 3e 70 | 6f 73 69 78 5f 74 69 6d |ve.<TT>p|osix_tim|
|00000410| 65 3c 2f 54 54 3e 2e 20 | 20 54 68 65 20 63 6f 6e |e</TT>. | The con|
|00000420| 73 74 61 6e 74 20 74 63 | 5f 73 75 62 72 5f 30 20 |stant tc|_subr_0 |
|00000430| 75 73 65 64 20 61 73 20 | 74 68 65 20 73 65 63 6f |used as |the seco|
|00000440| 6e 64 0a 61 72 67 75 6d | 65 6e 74 20 69 6e 64 69 |nd.argum|ent indi|
|00000450| 63 61 74 65 73 20 74 68 | 65 20 61 72 69 74 79 20 |cates th|e arity |
|00000460| 6f 66 20 74 68 69 73 20 | 70 72 69 6d 69 74 69 76 |of this |primitiv|
|00000470| 65 2e 20 49 6e 20 74 68 | 69 73 20 63 61 73 65 2c |e. In th|is case,|
|00000480| 20 74 68 65 0a 61 72 69 | 74 79 20 6f 66 20 74 68 | the.ari|ty of th|
|00000490| 65 20 70 72 69 6d 69 74 | 69 76 65 20 69 73 20 30 |e primit|ive is 0|
|000004a0| 2e 0a 0a 3c 50 3e 0a 4c | 65 74 27 73 20 6e 6f 77 |...<P>.L|et's now|
|000004b0| 20 68 61 76 65 20 61 20 | 6c 6f 6f 6b 20 61 74 20 | have a |look at |
|000004c0| 74 68 65 20 70 72 69 6d | 69 74 69 76 65 20 3c 54 |the prim|itive <T|
|000004d0| 54 3e 70 6f 73 69 78 2d | 63 74 69 6d 65 3c 2f 54 |T>posix-|ctime</T|
|000004e0| 54 3e 2e 20 41 20 66 69 | 72 73 74 0a 77 72 69 74 |T>. A fi|rst.writ|
|000004f0| 69 6e 67 20 6f 66 20 74 | 68 69 73 20 70 72 69 6d |ing of t|his prim|
|00000500| 69 74 69 76 65 20 63 6f | 75 6c 64 20 62 65 0a 3c |itive co|uld be.<|
|00000510| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00000520| 3d 22 22 20 53 52 43 3d | 22 69 6d 67 33 2e 70 6e |="" SRC=|"img3.pn|
|00000530| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000540| 43 6f 64 65 7d 0a 5c 62 | 65 67 69 6e 7b 6c 69 73 |Code}.\b|egin{lis|
|00000550| 74 69 6e 67 7d 5b 32 30 | 30 5d 7b 32 7d 0a 73 74 |ting}[20|0]{2}.st|
|00000560| 61 74 69 63 20 50 52 49 | 4d 49 54 49 56 45 20 70 |atic PRI|MITIVE p|
|00000570| 6f 73 69 78 5f 63 74 69 | 6d 65 28 76 6f 69 64 29 |osix_cti|me(void)|
|00000580| 0a 7b 0a 63 68 61 72 20 | 2e 2e 2e 0a 2e 2e 2e 28 |.{.char |.......(|
|00000590| 4e 55 4c 4c 29 3b 0a 5c | 70 61 72 0a 73 20 3d 20 |NULL);.\|par.s = |
|000005a0| 63 74 69 6d 65 28 26 61 | 6d 70 3b 74 29 3b 0a 72 |ctime(&a|mp;t);.r|
|000005b0| 65 74 75 72 6e 20 53 54 | 6b 5f 6d 61 6b 65 73 74 |eturn ST|k_makest|
|000005c0| 72 69 6e 67 28 73 29 3b | 0a 7d 0a 5c 65 6e 64 7b |ring(s);|.}.\end{|
|000005d0| 6c 69 73 74 69 6e 67 7d | 5c 65 6e 64 7b 43 6f 64 |listing}|\end{Cod|
|000005e0| 65 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 54 |e}">.<BR|>..<P>.T|
|000005f0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 73 20 75 73 |his func|tions us|
|00000600| 65 73 20 61 6e 6f 74 68 | 65 72 20 69 6e 74 65 72 |es anoth|er inter|
|00000610| 70 72 65 74 65 72 20 72 | 6f 75 74 69 6e 65 20 28 |preter r|outine (|
|00000620| 53 54 6b 5f 6d 61 6b 65 | 73 74 72 69 6e 67 29 0a |STk_make|string).|
|00000630| 77 68 69 63 68 20 74 61 | 6b 65 73 20 61 73 20 70 |which ta|kes as p|
|00000640| 61 72 61 6d 65 74 65 72 | 20 61 20 6e 75 6c 6c 20 |arameter| a null |
|00000650| 74 65 72 6d 69 6e 61 74 | 65 64 20 73 74 72 69 6e |terminat|ed strin|
|00000660| 67 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 61 0a |g and re|turns a.|
|00000670| 53 63 68 65 6d 65 20 73 | 74 72 69 6e 67 2e 20 0a |Scheme s|tring. .|
|00000680| 0a 3c 50 3e 0a 42 69 6e | 64 69 6e 67 20 6f 66 20 |.<P>.Bin|ding of |
|00000690| 74 68 65 20 73 63 68 65 | 6d 65 20 73 79 6d 62 6f |the sche|me symbo|
|000006a0| 6c 20 3c 54 54 3e 74 69 | 6d 65 2d 73 74 72 69 6e |l <TT>ti|me-strin|
|000006b0| 67 3c 2f 54 54 3e 20 74 | 6f 20 74 68 65 20 43 20 |g</TT> t|o the C |
|000006c0| 66 75 6e 63 74 69 6f 6e | 20 0a 3c 54 54 3e 67 65 |function| .<TT>ge|
|000006d0| 74 5f 74 69 6d 65 3c 2f | 54 54 3e 20 69 73 20 64 |t_time</|TT> is d|
|000006e0| 6f 6e 65 20 62 79 20 74 | 68 65 20 63 61 6c 6c 20 |one by t|he call |
|000006f0| 0a 3c 42 52 3e 0a 3c 49 | 4d 47 0a 20 20 53 54 59 |.<BR>.<I|MG. STY|
|00000700| 4c 45 3d 22 22 20 53 52 | 43 3d 22 69 6d 67 34 2e |LE="" SR|C="img4.|
|00000710| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|00000720| 6e 7b 43 6f 64 65 7d 0a | 5c 62 65 67 69 6e 7b 6c |n{Code}.|\begin{l|
|00000730| 69 73 74 69 6e 67 7d 5b | 32 30 30 5d 7b 32 7d 0a |isting}[|200]{2}.|
|00000740| 53 54 6b 5f 61 64 64 5f | 6e 65 77 5f 70 72 69 6d |STk_add_|new_prim|
|00000750| 69 74 69 76 65 28 27 27 | 70 6f 73 69 78 2d 63 74 |itive(''|posix-ct|
|00000760| 69 6d 65 27 27 2c 20 74 | 63 5f 73 75 62 72 5f 30 |ime'', t|c_subr_0|
|00000770| 2c 20 70 6f 73 69 78 5f | 63 74 69 6d 65 29 3b 0a |, posix_|ctime);.|
|00000780| 5c 65 6e 64 7b 6c 69 73 | 74 69 6e 67 7d 5c 65 6e |\end{lis|ting}\en|
|00000790| 64 7b 43 6f 64 65 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |d{Code}"|>.<BR>..|
|000007a0| 3c 50 3e 0a 41 20 63 6f | 6d 70 6c 65 74 65 20 6c |<P>.A co|mplete l|
|000007b0| 69 73 74 69 6e 67 20 6f | 66 20 74 68 69 73 20 63 |isting o|f this c|
|000007c0| 6f 64 65 20 69 73 20 67 | 69 76 65 6e 20 69 6e 20 |ode is g|iven in |
|000007d0| 46 69 67 75 72 65 26 6e | 62 73 70 3b 3c 41 20 48 |Figure&n|bsp;<A H|
|000007e0| 52 45 46 3d 22 6e 6f 64 | 65 36 5f 63 74 2e 68 74 |REF="nod|e6_ct.ht|
|000007f0| 6d 6c 23 70 6f 73 69 78 | 2d 31 22 3e 3c 49 4d 47 |ml#posix|-1"><IMG|
|00000800| 20 20 41 4c 54 3d 22 5b | 2a 5d 22 20 53 52 43 3d | ALT="[|*]" SRC=|
|00000810| 22 63 72 6f 73 73 72 65 | 66 2e 70 6e 67 22 3e 3c |"crossre|f.png"><|
|00000820| 2f 41 3e 2e 0a 50 72 6f | 76 69 64 65 64 20 74 68 |/A>..Pro|vided th|
|00000830| 61 74 20 77 65 20 68 61 | 76 65 20 64 6f 6e 65 20 |at we ha|ve done |
|00000840| 61 20 73 68 61 72 65 64 | 20 6f 62 6a 65 63 74 20 |a shared| object |
|00000850| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 2c 20 61 6e |of this |file, an|
|00000860| 64 20 74 68 61 74 20 69 | 74 73 0a 6e 61 6d 65 20 |d that i|ts.name |
|00000870| 69 73 20 3c 54 54 3e 70 | 6f 73 69 78 2e 73 6f 3c |is <TT>p|osix.so<|
|00000880| 2f 54 54 3e 2c 20 6f 75 | 72 20 74 77 6f 20 6e 65 |/TT>, ou|r two ne|
|00000890| 77 20 70 72 69 6d 69 74 | 69 76 65 73 20 63 61 6e |w primit|ives can|
|000008a0| 20 62 65 20 6c 6f 61 64 | 65 64 0a 64 79 6e 61 6d | be load|ed.dynam|
|000008b0| 69 63 61 6c 6c 79 20 62 | 79 3a 0a 3c 42 52 3e 0a |ically b|y:.<BR>.|
|000008c0| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 22 20 |<IMG. S|TYLE="" |
|000008d0| 53 52 43 3d 22 69 6d 67 | 35 2e 70 6e 67 22 0a 20 |SRC="img|5.png". |
|000008e0| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 43 6f 64 65 |ALT="\be|gin{Code|
|000008f0| 7d 0a 5c 62 65 67 69 6e | 7b 6c 69 73 74 69 6e 67 |}.\begin|{listing|
|00000900| 7d 5b 32 30 30 5d 7b 32 | 7d 0a 28 6c 6f 61 64 20 |}[200]{2|}.(load |
|00000910| 27 27 74 69 6d 65 2e 73 | 6f 27 27 29 0a 5c 65 6e |''time.s|o'').\en|
|00000920| 64 7b 6c 69 73 74 69 6e | 67 7d 5c 65 6e 64 7b 43 |d{listin|g}\end{C|
|00000930| 6f 64 65 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |ode}">.<|BR>..<P>|
|00000940| 0a 0a 3c 48 52 3e 0a 0a | 3c 2f 42 4f 44 59 3e 0a |..<HR>..|</BODY>.|
|00000950| 3c 2f 48 54 4d 4c 3e 0a | |</HTML>.| |
+--------+-------------------------+-------------------------+--------+--------+